package com.pattern.observer.jdkdemo;

public class TestMain {
    public static void main(String[] args){
        Blogger blogger = new Blogger("张三");

        blogger.addObserver(new Fan("路人甲"));
        blogger.addObserver(new Fan("路人乙"));

        blogger.publicNewBlog(new Blog("日记一则"));
    }
}
